-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: read in dependency charts #80
Conversation
641df24
to
42c5fca
Compare
aa01386
to
2707018
Compare
137314c
to
64267bb
Compare
8458d6f
to
efc8a68
Compare
c81c210
to
4350412
Compare
8b01935
to
16f269e
Compare
tests and cleanup feat(hover): remove newlines in hover fix(windows): test with different linebreaks fix: test should work on windows now minor changes fix: minor change fix: minor fixes minor fix
16f269e
to
9b3ba2e
Compare
Does this include support for hovering and goto definition of TPL functions? From what I have tested it is working with values and dependency charts, but unfortunately not TPL files.. Any ideas? It seems to be working within a single TPL file, I.e. goto functions that are defined within the current TPL file. See example below: _helper.tpl
pod.yaml
Thanks for your work! |
Hi @dapc11, this should work, but I only tested it with the bitnami-common chart as a dependency (https://github.com/mrjosh/helm-ls/tree/master/testdata/dependenciesExample). Are you sure, you got the latest version of helm-ls? |
Thanks for quick reply, yes I'm using the latest binary. However, you're right about the lack of dependency usage. My assumption is that when the tpl is "chart-local", i.e. part of the same templates folder it would snap it up automatically. But if you got it working it might be on my end that something is wrong. Will spend some additional time and get back to you. Cheers! |
Do you have a normal helm chart project structure, or are you using something like helmfile? I just deleted the Chart.yaml file in my example and this causes the same issue as you have stated. |
It is a complex setup for sure. Could not really disclose it, unfortunately. But, I was able to reproduce with https://github.com/helm/examples, when I first tried to goto definition in deployment.yaml: Here're the logs from the above test session:
|
Really weird, for me it is working without problems with https://github.com/helm/examples. Your logs also don't indicate a crash of helm-ls (there should be a stack trace). |
Hmm, something is fishy here. What editor are you using? Mind sharing your setup? |
I'm using neovim (v0.10.1), maybe you can test with the minimal config
I'm also pretty sure that this should work on macOS and linux |
Will try and get back. Thanks for pointers! |
It is definitely something on my end, both helm example and the more complex project is working as a charm with the example config. Thanks for your help and great contribution @qvalentin! |
Good to know, feel free to ask, if you have any questions about the neovim config. |
Funny story actually, have a quite sophisticated neovim setup, but have been trying out emacs lately, so now I'm stuck somewhere in between. Could be a reason for the issues I've had. Anyway great to have verified that it is on my end. Again great work. |
This allows using the following of the dependency charts:
template files
name: {{ include "common.names.name" . }}
values files
example: {{ .Values.common.exampleValue }}
Todos:
helm dependency build
Feedback would be welcome.
So if you want to test, clone this branch and run
go build
.